import { ApiProperty } from '@nestjs/swagger';

export class FileResponseDto {
  @ApiProperty({
    description: '文件ID',
    example: 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
  })
  id: string;

  @ApiProperty({
    description: '文件原始名称',
    example: 'design_doc.pdf',
  })
  originalName: string;

  @ApiProperty({
    description: '系统生成的文件名',
    example: '1615478965242_design_doc.pdf',
  })
  filename: string;

  @ApiProperty({
    description: '文件相对路径',
    example: 'uploads/tasks/1615478965242_design_doc.pdf',
  })
  path: string;

  @ApiProperty({
    description: '文件MIME类型',
    example: 'application/pdf',
  })
  mimeType: string;

  @ApiProperty({
    description: '文件大小（字节）',
    example: 1024000,
  })
  size: number;

  @ApiProperty({
    description: '文件描述',
    example: '产品设计草图',
  })
  description: string;

  @ApiProperty({
    description: '上传者ID',
    example: 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
  })
  uploaderId: string;

  @ApiProperty({
    description: '关联的任务ID',
    example: 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
  })
  taskId: string;

  @ApiProperty({
    description: '创建时间',
    example: '2023-01-01T00:00:00.000Z',
  })
  createdAt: Date;

  @ApiProperty({
    description: '更新时间',
    example: '2023-01-01T00:00:00.000Z',
  })
  updatedAt: Date;
} 